Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MM-50818 Fix module loading issues caused by shared modules #1826

Merged
merged 4 commits into from
Feb 28, 2023

Conversation

hmhealey
Copy link
Member

@hmhealey hmhealey commented Feb 27, 2023

The errors that we were seeing where either Boards or Playbooks were failing to load when they were both loaded at the same time seems like it was happening due to an issue with the resolution of shared modules by module federation. Specifically, it seems to be due to how it was trying to choose which version of those shared modules to use between the ones bundled with the web app, Boards, and Playbooks.

Since I've been trying to make the web app the authority for these dependencies, I just changed it so that the Playbooks build will never include "fallback" versions of React and such since we know they'll always exist in the web app.

Ticket Link

https://mattermost.atlassian.net/browse/MM-50818

Related Pull Requests

mattermost/focalboard#4605
mattermost/mattermost-webapp#12282

@hmhealey hmhealey added the 2: Dev Review Requires review by a core committer label Feb 27, 2023
@hmhealey hmhealey self-assigned this Feb 27, 2023
@hmhealey
Copy link
Member Author

@lieut-data I need a minute. I forgot one part of this

@hmhealey hmhealey removed their assignment Feb 27, 2023
@hmhealey
Copy link
Member Author

Okay, now it's good to go

@hmhealey
Copy link
Member Author

I'm not sure why the lint job is failing here. I think it's something that's already affecting the mpa-playbooks branch and not specific to my changes since it's to do with ../mattermost-server not being found

@lieut-data
Copy link
Member

Yep, CI on this branch isn't working yet -- feel free to merge @hmhealey :)

@hmhealey hmhealey added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Feb 28, 2023
@hmhealey hmhealey merged commit c01f915 into mpa-playbooks Feb 28, 2023
@hmhealey hmhealey deleted the hh_fix-shared-modules branch February 28, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants